package com.hongdee.scm.car.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Mr. Xu on 2017/5/24.
 */
@Entity
@Table(name = "T_Scm_Car_Price_Detail")
public class TScmCarPriceDetail extends BaseEntity {
    /**
     * 车辆id
     */
    @Column(name = "car_id", length = 32, columnDefinition = "VARCHAR(32) COMMENT '车辆id'")
    private String carId;
    /**
     * vin
     */
    @Column(name = "vin", length = 32, columnDefinition = "VARCHAR(32) COMMENT 'vin'")
    private String vin;

    /**
     * 暂估入库时间
     */
    @Column(name = "estimate_date", length = 32, columnDefinition = "date COMMENT '暂估入库时间'")
    private Date estimateDate;
     /* 暂估价格
     */
    @Column(name = "estimate_price", length = 255, columnDefinition = "NUMERIC(10,2) COMMENT '暂估价格'")
    private BigDecimal estimatePrice;

    /**
     * 正式入库时间
     */
    @Column(name = "in_date", length = 32, columnDefinition = "date COMMENT '正式入库时间'")
    private Date inDate;
    /**
     * 采购发票价格
     */
    @Column(name = "buy_price", length = 32, columnDefinition = "NUMERIC(10,2) COMMENT '采购发票价格'")
    private BigDecimal buy_price;
    /**
     * 销售价格
     */
    @Column(name = "sale_price", length = 32, columnDefinition = "NUMERIC(10,2) COMMENT '销售发票价格'")
    private BigDecimal salePrice;
    /**
     * 发票id
     */
    @Column(name = "invoice_No", length = 32, columnDefinition = "VARCHAR(32) COMMENT '销售发票号'")
    private String invoiceNo;
    /**
    /**
     * 销售日期
     */
    @Column(name = "sale_date", length = 32, columnDefinition = "VARCHAR(32) COMMENT '销售日期'")
    private String saleDate;

    /**
     * 车辆出库类型：0正常，1暂估出库,2正常出库
     */
    @Column(name = "out_type", length = 32, columnDefinition = "smallint COMMENT '车辆出库类型：0正常，1暂估出库,2正常出库'")
    private int outType;


    /**
     * 正式出库时间
     */
    @Column(name = "out_date", length = 32, columnDefinition = "date COMMENT '正式出库时间'")
    private Date outDate;

    /**
     *状态：0未月结，1已月结
     */
    @Column(name = "status", length = 6, columnDefinition = "smallint COMMENT '状态：0未月结，1已月结'")
    private int status;


    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public Date getEstimateDate() {
        return estimateDate;
    }

    public void setEstimateDate(Date estimateDate) {
        this.estimateDate = estimateDate;
    }

    public BigDecimal getEstimatePrice() {
        return estimatePrice;
    }

    public void setEstimatePrice(BigDecimal estimatePrice) {
        this.estimatePrice = estimatePrice;
    }

    public Date getInDate() {
        return inDate;
    }

    public void setInDate(Date inDate) {
        this.inDate = inDate;
    }

    public BigDecimal getBuy_price() {
        return buy_price;
    }

    public void setBuy_price(BigDecimal buy_price) {
        this.buy_price = buy_price;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public String getInvoiceNo() {
        return invoiceNo;
    }

    public void setInvoiceNo(String invoiceNo) {
        this.invoiceNo = invoiceNo;
    }

    public String getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(String saleDate) {
        this.saleDate = saleDate;
    }

    public Date getOutDate() {
        return outDate;
    }

    public void setOutDate(Date outDate) {
        this.outDate = outDate;
    }

    public int getOutType() {
        return outType;
    }

    public void setOutType(int outType) {
        this.outType = outType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
